package com.mirai.mirai_boot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "idiom")
public class Idiom {
    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 成语名称
     */
    @TableField(value = "idiom_name")
    private String idiomName;

    /**
     * 首拼
     */
    @TableField(value = "first_spell")
    private String firstSpell;

    /**
     * 尾拼
     */
    @TableField(value = "tall_spell")
    private String tallSpell;

    public static final String COL_ID = "id";

    public static final String COL_IDIOM_NAME = "idiom_name";

    public static final String COL_FIRST_SPELL = "first_spell";

    public static final String COL_TALL_SPELL = "tall_spell";
}
